/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package nl.rainbowsheep.reisorg.rest.service.service;

import nl.rainbowsheep.reisorg.rest.service.model.Language;
import nl.rainbowsheep.reisorg.rest.service.repository.LanguageRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author ieme
 */
@Service
public class LanguageService {

    @Autowired
    LanguageRepository langRepo;
    
    public Language getLanguageByName(String name) {
        return langRepo.findByLanguageName(name);
    }
}
